#-------------------------------------------------------------------------------
# Name:        module1
# Purpose:
#
# Author:      Student
#
# Created:     17/07/2012
# Copyright:   (c) Student 2012
# Licence:     <your licence>
#need list of suites
#list of possible product value
#we can use ranges of loop
#list of the face card,and sign to possible product value
#use the deck,
#we can call random method
#we need to build the deck
#create all the possible value
#list of possible value
#-------------------------------------------------------------------------------
import random3
#value should contain 2 - 10 in string format
deck = [] # a list of cards
suites = ["hearts", "diamond", "spades" , "clalaos"]
number = range (2,10)
faces = ["jack","king","queen","ace"]
values = []
card1 = []
card2 = []


#a card should hold suit and value

for x in number:
        values.append(str(x))
values.extend(faces)

for y in values:
        for z in suites:
            card = [y,z]
            deck.append(card)
def deckPlayer1():
        print(playerDeck)
        playerDeck = random.choice(deck)
        for card in range(0,26):
            deck.append(number)




def main():
    print(values)
    print(deck)
    random.shuffle(deck)
    print(deck)
    hand = []
    for z in range(0,5):
        thiscard = random.choice(deck)
        hand.append(thiscard)
        deck.remove(thiscard)
    print(hand)
    popcard = hand.pop()
    print(popcard)



    pass

if __name__ == '__main__':
    main()
